'use strict';

module.exports = {
  up: async (queryInterface, Sequelize) => {
    await queryInterface.bulkInsert('Articles', [
      {
        title: 'vue的优缺点',
        desc: '这是一段描述的话',
        content:'这是一段主要的文章内容......',
        coverImg: 'https://i1.hdslb.com/bfs/face/5cd928dab0627f8fad438ccfb2ad8c64022de7e5.jpg@68w_68h.webp',
        status:1,
        createdAt: new Date(),
        updatedAt: new Date()
      },
      {
        title: 'React的优缺点',
        desc: '这是一段描述的话',
        content:'这是一段主要的文章内容......',
        coverImg: 'https://i1.hdslb.com/bfs/face/5cd928dab0627f8fad438ccfb2ad8c64022de7e5.jpg@68w_68h.webp',
        status:1,
        createdAt: new Date(),
        updatedAt: new Date()
      },
      {
        title: 'node的优缺点',
        desc: '这是一段描述的话',
        content:'这是一段主要的文章内容......',
        coverImg: 'https://i1.hdslb.com/bfs/face/5cd928dab0627f8fad438ccfb2ad8c64022de7e5.jpg@68w_68h.webp',
        status:1,
        createdAt: new Date(),
        updatedAt: new Date()
      }
    ], {});
  },

  down: async (queryInterface, Sequelize) => {
    await queryInterface.bulkDelete('Articles', null, {});
  }
};
